package java19_1_21;

//用内部类实现多继承
class A {
    int numA = 10;
}

class B {
    int numB = 20;
}

public class E {
    class C extends A {
    }

    class D extends B {
    }

    public void test() {
        C c = new C();
        D d = new D();
        System.out.println(c.numA);
        System.out.println(d.numB);
    }

    public static void main(String[] args) {
        E e = new E();
        e.test();
    }
}
